package com.blrs.domain;

import com.blrs.common.annotation.Excel;
import com.blrs.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 内部文件权限设置对象 permission_setting
 * 
 * @author ruoyi
 * @date 2023-11-01
 */
public class PermissionSetting extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 权限id */
    @Excel(name = "权限id")
    private String permissionId;

    /** 内部文件id */
    private String internalId;

    /** 权限用户id */
    @Excel(name = "权限用户id")
    private String permissionUserId;

    /** 权限用户名称 */
    @Excel(name = "权限用户名称")
    private String permissionUserName;

    /** 创建人id */
    @Excel(name = "创建人id")
    private String creationId;

    /** 创建人姓名 */
    @Excel(name = "创建人姓名")
    private String creationName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 所属部门id */
    @Excel(name = "所属部门id")
    private String deptId;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private String deptName;

    public void setDeptId(String deptId)
    {
        this.deptId = deptId;
    }

    public String getDeptId()
    {
        return deptId;
    }
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }

    public void setPermissionId(String permissionId)
    {
        this.permissionId = permissionId;
    }
    public String getPermissionId()
    {
        return permissionId;
    }

    public void setInternalId(String internalId)
    {
        this.internalId = internalId;
    }
    public String getInternalId()
    {
        return internalId;
    }

    public void setPermissionUserId(String permissionUserId)
    {
        this.permissionUserId = permissionUserId;
    }
    public String getPermissionUserId()
    {
        return permissionUserId;
    }

    public void setPermissionUserName(String permissionUserName) {this.permissionUserName = permissionUserName;}
    public String getPermissionUserName()
    {
        return permissionUserName;
    }


    public void setCreationId(String creationId)
    {
        this.creationId = creationId;
    }

    public String getCreationId()
    {
        return creationId;
    }
    public void setCreationName(String creationName) 
    {
        this.creationName = creationName;
    }

    public String getCreationName() 
    {
        return creationName;
    }

    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("permissionId", getPermissionId())
            .append("internalId", getInternalId())
            .append("permissionUserId", getPermissionUserId())
            .append("permissionUserName", getPermissionUserName())
            .append("creationId", getCreationId())
            .append("creationName", getCreationName())
            .append("creationTime", getCreationTime())
            .toString();
    }
}
